<%@ Page Title="Edit or Create Question" Language="C#" MasterPageFile="~/Views/Shared/Employee.Master" Inherits="System.Web.Mvc.ViewPage<DomainModel.Entities.Question>" %>

<asp:Content ContentPlaceHolderID="TitleContent" runat="server">
	Edit or Create Question
</asp:Content>

<asp:Content ContentPlaceHolderID="MainContent" runat="server">

<% using (Html.BeginForm("EditQuestion", "Questions"))
   { %>
   
    <h2>Edit or Create Question</h2>
    
    <%= Html.ValidationSummary("Edit was unsuccessful. Please correct the errors and try again.") %>
    
    <fieldset class="staffingexpert">
    
    <legend class="staffingexpert">Question</legend>
    
    <%= Html.Hidden("QuestionID")%>
    
    <p>
        <label class="staffingexpert" for="QuestionString">Question:</label>
        <br/><%= Html.TextBox("QuestionString", null, new { @class = "staffingexperttextbox", @style = "width: 610px;" })%>
        <%= Html.ValidationMessage("QuestionString", "*")%>
    </p>
    
    <p>
        <label class="staffingexpert" for="Minimum_Score">Minimum Score Required:</label>
        <br/><%= Html.TextBox("Minimum_Score", null, new { @class = "staffingexperttextbox", @style = "width: 20px;" })%>
        <%= Html.ValidationMessage("Minimum_Score", "*")%>
    </p>
    
    <p>
        <label class="staffingexpert" for="TypeCheckbox">Is this an essay question?</label>
        <% if (TempData["IsChecked"] == "true") { %>
            <%= Html.CheckBox("TypeCheckbox", true)%>
        <% }
           else { %>
            <%= Html.CheckBox("TypeCheckbox", false)%>
        <% } %>
    </p>
    
     <p><input class="staffingexpert" type="submit" value="Save"/>
     | <%= Html.ActionLink("Cancel", "Index")%></p>
     
     </fieldset>
     
<% } %>
    
</asp:Content>
